package com.theory.sms.client;


import com.theory.sms.fallback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-core", fallback = CoreUserInfoClientFallback.class)  // 调用哪个微服务,指定降级类
public interface CoreUserInfoClient {

    @GetMapping("/core/api/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable String mobile);
}
